cmake_minimum_required(VERSION 3.5)
project(libCommandTest)

file(GLOB_RECURSE TEST_SOURCES "*.cpp")
foreach(TEST_SOURCE ${TEST_SOURCES})
	get_filename_component(TEST_NAME ${TEST_SOURCE} NAME_WE)
	add_executable(${TEST_NAME} ${TEST_SOURCE})
	add_dependencies(${TEST_NAME} libGeoutils)
	target_link_libraries(${TEST_NAME} PRIVATE libGeoutils)
	set_target_properties(${TEST_NAME} PROPERTIES FOLDER "test")
endforeach()